//
// Created by eliotxu on 2022/01/19.
//

#include <iostream>

double convert(double);
using namespace std;

int main() {
    double c_degree, f_degree;

    std::cout << "Please enter a Celsius value:" << std::endl;
    cin >> c_degree;

    f_degree = convert(c_degree);
    std::cout << c_degree << " degree Celsius is " << f_degree
              << " degrees Fahrenheit." << std::endl;

    return 0;
}

double convert(double c) { return 1.8 * c + 32.0; }